<?php

define('IN_NETGORESP', true);

 /*
   ----------------------------------------------------------------------------------------------------
   INCLUSIONS
   ----------------------------------------------------------------------------------------------------
	+ Common.php
		- Includes all the other files needed.
   ----------------------------------------------------------------------------------------------------
   */
 include("common.php");

/*
----------------------------------------------------------------------------------------------------
USER LIST, ONLINE LIST
----------------------------------------------------------------------------------------------------
	+ Handles both the User List and Online List
		- User List Shows ALL users.
		- Online List Shows ONLY online users.
----------------------------------------------------------------------------------------------------
*/
	$olist = $_GET["list"];
    $query = getUsers($db);

	if ($db->sql_rows($query) == 0) 
	{ 
		// User List Error
		$uError = $lang['uNoUsers'];
		
		// @template: Header
	 	include("template/".$config['template_name']."/header.php");
		
		// @template: User list Error
		include("template/".$config['template_name']."/user.list.error.php");
		
		// @template: Footer
		include("template/".$config['template_name']."/footer.php");
		
	}
	
	// @template: Header
 	include("template/".$config['template_name']."/header.php");
	
	// @template: User List Results Header
	include("template/".$config['template_name']."/user.list.results.php");
	
	// @template: Footer
	include("template/".$config['template_name']."/footer.php");
	
    echo $page;
?>